<h1><%=h @article.title %></h1>

<h2>Links</h2>
<ul>
<% @article.links.each do |l| %>
  <li><%= l.url %> <small>(published <%= time_ago_in_words(l.published_on) %> ago)</small></li>
<% end %>
</ul>

<%= link_to 'Edit', edit_article_path(@article) %> |
<%= link_to 'Back', articles_path %>